<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
	<meta http-equiv="pragma" content="no-cache" />
	<link rel="stylesheet" href="/css/style.css" type="text/css"/>
	<script type="text/javascript" src="/js/jquery.js"></script>
	<script type="text/javascript" src="/js/util.js"></script>
</head>
<script type="text/javascript">
//////////////////////////////////////////////////////////////////////
////  email = "wenpin.qian@happyelements.com"                     ////
////  team = "Athene"                                             ////
////  warnings = "This is generated page,Do Not Modify!";         ////
////  tips = "Opera & IE not supported|Chrome & Safari sugguested"////
//////////////////////////////////////////////////////////////////////
var getnpc_unitJsonListUrl = "/npc_unit/getJsonList/";
$(document).ready(function() {
	startMasker();
	$.ajax({
		type: "GET",
		url: getnpc_unitJsonListUrl,
		data: "",
		dataType: "json",
		success: function(data) {
			if(data.code > 0) {
				var resultList = data.result;
				var renderHtml = "[<br/>";
				for(var i=0;i<resultList.length;i++) {
					var result = resultList[i];
					$("#npc_unitId").html(result.npc_unitId);
					$("#deployId").html(result.deployId);
					$("#name").html('"'+result.name+'"');					$("#desc").html('"'+result.desc+'"');					$("#level").html(result.level);					$("#career").html(result.career);					$("#gender").html(result.gender);					$("#npcId").html(result.npcId);					$("#idx").html(result.idx);					$("#pos").html(result.pos);					$("#hp").html(result.hp);					$("#attackId").html(result.attackId);					$("#physicalatk").html(result.physicalatk);					$("#physicaldef").html(result.physicaldef);					$("#magicatk").html(result.magicatk);					$("#magicdef").html(result.magicdef);					$("#furyAttackRate").html(result.furyAttackRate);					$("#hardAttackRate").html(result.hardAttackRate);					$("#hurtIncValue").html(result.hurtIncValue);					$("#hurtDecValue").html(result.hurtDecValue);					$("#hurtIncPercent").html(result.hurtIncPercent);					$("#hurtDecPercent").html(result.hurtDecPercent);					$("#skills").html('"'+result.skills+'"');					$("#equipment").html('"'+result.equipment+'"');					$("#style").html('"'+result.style+'"');					$("#npcunitres").html(result.npcunitres);										
					renderHtml = renderHtml + $("#tpl_npc_unit").html();
					if(i < resultList.length - 1) {
						renderHtml = renderHtml + ","
					}
				}
				renderHtml = renderHtml + "]<br/>";
				$("#npc_unit_info").html(renderHtml);
				stopMasker();
			}else {
				errDialog(data.message);
			}
		}
});
});

</script>
<body>
<div class="json" id="npc_unit_info">

</div>
<div style="display:none" id="tpl_npc_unit">
<div class="json">
{<br/>
<span class="jsonkey">npc_unitId:</span><span id="npc_unitId"></span>,<br/>
<span class="jsonkey">deployId:</span><span id="deployId"></span>,<br/>
<span class="jsonkey">name:</span><span id="name" class="jsonvalue"></span>,<br/>
<span class="jsonkey">desc:</span><span id="desc" class="jsonvalue"></span>,<br/>
<span class="jsonkey">level:</span><span id="level" class="jsonvalue"></span>,<br/>
<span class="jsonkey">career:</span><span id="career" class="jsonvalue"></span>,<br/>
<span class="jsonkey">gender:</span><span id="gender" class="jsonvalue"></span>,<br/>
<span class="jsonkey">npcId:</span><span id="npcId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">idx:</span><span id="idx" class="jsonvalue"></span>,<br/>
<span class="jsonkey">pos:</span><span id="pos" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hp:</span><span id="hp" class="jsonvalue"></span>,<br/>
<span class="jsonkey">attackId:</span><span id="attackId" class="jsonvalue"></span>,<br/>
<span class="jsonkey">physicalatk:</span><span id="physicalatk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">physicaldef:</span><span id="physicaldef" class="jsonvalue"></span>,<br/>
<span class="jsonkey">magicatk:</span><span id="magicatk" class="jsonvalue"></span>,<br/>
<span class="jsonkey">magicdef:</span><span id="magicdef" class="jsonvalue"></span>,<br/>
<span class="jsonkey">furyAttackRate:</span><span id="furyAttackRate" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hardAttackRate:</span><span id="hardAttackRate" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtIncValue:</span><span id="hurtIncValue" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtDecValue:</span><span id="hurtDecValue" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtIncPercent:</span><span id="hurtIncPercent" class="jsonvalue"></span>,<br/>
<span class="jsonkey">hurtDecPercent:</span><span id="hurtDecPercent" class="jsonvalue"></span>,<br/>
<span class="jsonkey">skills:</span><span id="skills" class="jsonvalue"></span>,<br/>
<span class="jsonkey">equipment:</span><span id="equipment" class="jsonvalue"></span>,<br/>
<span class="jsonkey">style:</span><span id="style" class="jsonvalue"></span>,<br/>
<span class="jsonkey">npcunitres:</span><span id="npcunitres" class="jsonvalue"></span><br/>
</br>
}
</div>
</div>
<div class="maskerContent" id="framemasker" name="framemasker">
	<iframe class="maskframe" src="/pages/core/Masker.html"></iframe>
</div>
</body>